#ifndef WEN_BVH_H
#define WEN_BVH_H

//----------------------------------------------------------------
#include "graphics\wen_graphicsStructs.h"
#include <d3dx9.h>
//----------------------------------------------------------------

//----------------------------------------------------------------
namespace wen
{
//----------------------------------------------------------------

class BVH
{
public:
	BVH();
	virtual ~BVH();

	void SetBVHBoxVertices(float maxX, float minX, float maxY, float minY, float maxZ, float minZ);

	D3DXVECTOR3* GetMaxVertex() const { return m_pkMaxVertex; }
	D3DXVECTOR3* GetMinVertex() const { return m_pkMinVertex; }

	void TransformBVHVertex(const D3DXMATRIX* transformMatrix);

	float m_iMaxX;
	float m_iMinX;
	float m_iMaxY;
	float m_iMinY;
	float m_iMaxZ;
	float m_iMinZ;

private:
	D3DXVECTOR3* m_pkMaxVertex;
	D3DXVECTOR3* m_pkMinVertex;
};

//----------------------------------------------------------------
} // end namespace
//----------------------------------------------------------------
#endif // WEN_BVH_H
//----------------------------------------------------------------